#include "cc_div.h"

cc_div_t cc_div(int number, int denom)
{
	cc_div_t ret;
	ret.quot = number / denom;
	ret.mod = number % denom;
	return ret;
}

cc_ldiv_t cc_ldiv(long number, long denom)
{
	cc_ldiv_t ret;
	ret.quot = number / denom;
	ret.mod = number % denom;
	return ret;
}

cc_lldiv_t cc_lldiv(long long number, long long denom)
{
	cc_lldiv_t ret;
	ret.quot = number / denom;
	ret.mod = number % denom;
	return ret;
}